(function($, doc) {
	$.init();
	$.ready(function() {
		
	});
	
	//初始化滚动条
	mui(".mui-scroll-wrapper").scroll();
	
	//提交
	mui(".mui-content").on("tap","#submit",function(){
	    location.href = "add_problem_check.html";
	});

    //多选
	mui(".mui-bar").on("tap", "a", function () {
	    location.href = "add_problem_check_desc_mulit.html";
	});

    //列表点击事件
	mui('#list').on('tap', 'a', function () {
	    var href = "unit_housing_problem_new.html";
	    location.href = href;
	});

	//现场整改
	mui(".mui-content").on("tap","#pass",function(){
		if(this.querySelector("input").getAttribute("checked")){
			this.querySelector("input").removeAttribute("checked")
		}else{
			this.querySelector("input").setAttribute("checked",true)
		};
		return false;
	})
	//检查项
	mui(".mui-content").on("tap", "#check", function () {
	    location.href = "unit_housing_problem_new.html";
	    return;
		mui.openWindow({
			'id': "unit_housing_problem_new.html",
			'url': "unit_housing_problem_new.html",
				'extras': extras,
			'show': {
				'aniShow': "slide-in-right"
			},
			'waiting': {
				autoShow: false
			}
		})
	})

})(mui, document);